<extend name="Public/base"/>
<block name="body">
    <div class="main-title">
        <h2>云市场扩展自动升级</h2>
    </div>
    <div class="with-padding" id="version_list" style="width: 800px">
       <include file="_updatingGoods"/>
        <h3>可以升级的版本</h3>
        <table class="table table-bordered table-striped table-hover ">
            <thead>
            <tr>
                <th style="width: 80px">版本号</th>
                <th style="width: 150px">发布时间</th>
                <th>更新日志</th>
            </tr>
            </thead>
            <volist name="versionList" id="vo">
                <tr>
                    <td>{$vo.title}</td>
                    <td>{$vo.create_time|friendlyDate}</td>
                    <td>
                        {$vo.log|formatLog}
                    </td>
                </tr>
            </volist>
        </table>

        <a href="{:U('Updating1',array('token'=>$token))}" class="btn btn-success btn-block btn-lg">开始升级</a>


    </div>


    <script>
        function writeMessage($data) {
            $('#message').append($data);
        }
        function replaceMessage($data) {
            $('#message').children().last().remove();
            $('#message').children().last().remove();
            $('#message').append($data);
        }
        var progress = {
            'show': function () {
                $('#progress').parent().show();
            },
            'setValue': function ($value) {
                $('#progress').css('width', $value);
            },
            'hide': function () {
                $('#progress').parent().hide();
            }
        }
    </script>
</block>